package project_part2;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class GenerateTestCases2 {
	public static void main(String args[]) {


		
		// criter
		for (int i = 1; i < 16; i++) {
			//thresh
			for(int j=0;j<4;j++)
			{
				System.out.println("@Test\n"+
				"public void testCrit"+i+"Thresh"+(j+1)+"true() {\n"+
					
					"ContactList clist = new ContactList();\n"+
					"Contact con = setContact("+i+");\n"+
					"Contact con2 = setMatch("+i+");\n"+
					"Contact res[] = null;\n"+
					"MatchCriteria mc = setCriteria("+i+",false);\n"+
					"int outcome = 0;\n"+
					"if(sumBits("+i+") >= "+(j+1)+" )\n"+
					"outcome = 1;\n" +
					"else\n"+
					"outcome = 0;\n"+
					"clist.add(con2);\n"+
					
					"res = clist.findMatches(con, mc, "+(j+1)+");\n"+
					"System.out.println(\"*************************\");\n"+
					"System.out.println(con);\n"+
					"System.out.println(mc);\n"+
					"System.out.println(outcome);\n"+
					"System.out.println(\"-------------------------\");\n"+
					"assertEquals(outcome,res.length);\n"+
					"}");
				
				System.out.println("@Test\n"+
				"public void testCrit"+i+"Thresh"+(j+1)+"false() {\n"+
					
					"ContactList clist = new ContactList();\n"+
					"Contact con = setContact("+i+");\n"+
					"Contact con2 = setMatch("+i+");\n"+
					"Contact res[] = null;\n"+
					"MatchCriteria mc = setCriteriaInv("+i+",false);\n"+
					"int outcome = 0;\n"+
					"if(sumBits("+i+") >= "+(j+1)+" )\n"+
					"outcome = 1;\n" +
					"else\n"+
					"outcome = 0;\n"+
					"clist.add(con2);\n"+
					
					"res = clist.findMatches(con, mc, "+(j+1)+");\n"+
					"System.out.println(\"*************************\");\n"+
					"System.out.println(con);\n"+
					"System.out.println(mc);\n"+
					"System.out.println(outcome);\n"+
					"System.out.println(\"-------------------------\");\n"+
					"assertEquals(0,res.length);\n"+
					"}");
			}

		}
	
	}
}
